public class TestMain {
    public static void main(String[] args) {
        String str = "asdds.exe";
        String[] s = str.split("\\.");
        for(int i=0;i<s.length;i++){
            System.out.println(s[i]);
        }
        if(s[s.length-1].equals("exe")){
            System.out.println("true");
        }else {
            System.out.println("false");
        }

    }
}
